<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http:www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<include file="./Home/Tpl/Admin/Common/cssjs.html" />
</head>
<body>
<style type="text/css">
	html{_overflow-y:scroll}
</style>
<script language="javascript" type="text/javascript" src="{$Config.siteurl}statics/js/content_addtop.js"></script> 
<script language="javascript" type="text/javascript" src="{$Config.siteurl}statics/js/colorpicker.js"></script> 
<!--/statics/js/hotkeys.js--> 
<script language="javascript" type="text/javascript" src="{$Config.siteurl}statics/js/cookie.js"></script> 
<script type="text/javascript">
//栏目ID
var catid='{$catid}'
//附件存放地址http
var uploadurl = "{$uploadurl}";
</script>
<form name="myform" id="myform" action="{:U("Contents/Content/edit")}" method="post" enctype="multipart/form-data">
  <div class="addContent" style="width:98%">
    <div class="crumbs">当前位置：内容  > 内容发布管理  > {$category.catname}</div>
    <div class="col-right">
      <div class="col-1">
        <div class="content pad-6">
          <?php
if(is_array($forminfos['senior'])) {
 foreach($forminfos['senior'] as $field=>$info) {
	if($info['isomnipotent']) continue;
	if($info['formtype']=='omnipotent') {
		foreach($forminfos['base'] as $_fm=>$_fm_value) {
			if($_fm_value['isomnipotent']) {
				$info['form'] = str_replace('{'.$_fm.'}',$_fm_value['form'],$info['form']);
			}
		}
		foreach($forminfos['senior'] as $_fm=>$_fm_value) {
			if($_fm_value['isomnipotent']) {
				$info['form'] = str_replace('{'.$_fm.'}',$_fm_value['form'],$info['form']);
			}
		}
	}
 ?>
          <h6>
            <?php if($info['star']){ ?>
            <font color="red">*</font>
            <?php } ?>
            <?php echo $info['name']?></h6>
          <?php echo $info['form'];?><?php echo $info['tips'];?>
          <?php
} }
?>
        <h6>状态</h6>
        <span class="ib" style="width:90px">
        <label><input type="radio" name="info[status]" value="99" <if condition=" $data['status']==99 "> checked</if>/>发布 </label>
        </span>
        <span class="ib" style="width:90px">
        <label><input type="radio" name="info[status]" value="1" <if condition=" $data['status']==1 "> checked</if>>审核 </label>
        </span>
        </div>
      </div>
    </div>
    <div class="col-auto">
      <div class="col-1">
        <div class="content pad-6">
          <table width="100%" cellspacing="0" class="table_form">
            <tbody>
              <?php
if(is_array($forminfos['base'])) {
 foreach($forminfos['base'] as $field=>$info) {
	 if($info['isomnipotent']) continue;
	 if($info['formtype']=='omnipotent') {
		foreach($forminfos['base'] as $_fm=>$_fm_value) {
			if($_fm_value['isomnipotent']) {
				$info['form'] = str_replace('{'.$_fm.'}',$_fm_value['form'],$info['form']);
			}
		}
		foreach($forminfos['senior'] as $_fm=>$_fm_value) {
			if($_fm_value['isomnipotent']) {
				$info['form'] = str_replace('{'.$_fm.'}',$_fm_value['form'],$info['form']);
			}
		}
	}
 ?>
              <tr>
                <th width="80"><?php if($info['star']){ ?>
                  <font color="red">*</font>
                  <?php } ?>
                  <?php echo $info['name'];?> </th>
                <td><?php echo $info['form'];?> <?php echo $info['tips'];?></td>
              </tr>
              <?php
} }
?>
            </tbody>
          </table>
        </div>
      </div>
    </div>
  </div>
  <div class="fixed-bottom">
    <div class="fixed-but text-c" style="z-index: 9999;">
      <div class="button">
        <input value="{$id}" type="hidden" name="id">
        <input type="hidden" name="catid" value="{$catid}" />
        <input value="保存" type="submit" name="dosubmit" style="width:145px;" class="cu" onclick="refersh_window()">
      </div>
      <div class="button">
        <input value="关闭" type="button" name="close" onclick="refersh_window();close_window();" class="cu" title="Alt+X">
      </div>
    </div>
  </div>
</form>
<script type="text/javascript"> 
<!--
//只能放到最下面
$(function(){
	$.formValidator.initConfig({
	    formid: "myform",
	    autotip: true,
	    onerror: function (msg, obj) {
	        art.dialog.through({
	            id: 'check_content_id',
	            content: msg,
	            lock: true
	        }, function () {
	            $(obj).focus();
	            boxid = $(obj).attr('id');
	            if ($('#' + boxid).attr('boxid') != undefined) {
	                check_content(boxid);
	            }
	        })
	    }
	});
	//对应字段JS提示开始
	{$formValidator}
//提示结束
/*
 * 加载禁用外边链接
 */

})
document.title = '编辑：{$data["title"]}';
self.moveTo(-4, -4);

function refersh_window() {
    setcookie('refersh_time', 1);
}
//-->
</script>
</body>
</html>